﻿using Dict.DataModel;
using System.Collections;
using UnityEngine;
namespace Story
{
    class StepMoveCharactor : StepBase
    {
        protected override void OnStart()
        {
            //TODO
            Vector3 vector4 = GetPosition(actionParam2);
            Vector3 target = vector4;


            var charactor = GetCharactor(actionParam1);
            if (charactor != null)
            {
                float speed = 0f;
                if (float.TryParse(actionParam3, out speed))
                {
                    charactor.SetSpeed(speed);
                }
                charactor.StopTo(target);
            }


            End();
        }

    }
}